package com.freecloud.javabasics.jvm;

import com.freecloud.common.Constant;

/**
 * 大对象分配直接到老年代
 * @Author: maomao
 * @Date: 2019-10-25 07:26
 */
public class BigObjectIntoOldGen {

    /**
     * JVM配置
     * -verbose:gc -XX:+PrintGCDetails -Xms20M -Xmx20M -Xmn10M -XX:PretenureSizeThreshold=6M
     * @param args
     */
    public static void main(String[] args) {
        byte[] a1 = new byte[7 * Constant._1MB];
    }
}
